function check() {
	var fir=$('#first').val(); //获取格子数目
	var sec=$('#secend').val(); //获取箱子布局
	var cou=$('#country').val(); //获取贴码位置
	var sim = $('#sim').val(); //获取sim卡号
	var buyer=$('#buyer').val(); //获取购买人的名字
	var partten = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/;
	if (sim == 0||fir==0||sec==0) {
		$('#lert').html("<div class='alert alert-error'><h4>请填写必填内容.</h4></div>");	
		return false;
	} else {
		return true		
	}
}
var doorLayout = [
	["一行两列", "两行一列"],
	["两行两列", "一行四列", "四行一列"],
	["三行两列", "两行三列"],
	["四行两列", "两行四列"],
	["两行五列", "五行两列"],
	["三行四列", "四行三列"]
];

function getNum() {
	var doorsnum = $('#first').val();
	var doorslayout = $('#secend').val();

	var layout = doorsnum / 2 - 1;
	var shu = doorLayout[layout];
	var html = "<option value='0'>请选择格子布局</option>";
	$.each(shu, function (key, val) {
		html += "<option value='" + val + "'>" + val + "</option>";
	});
	$("#secend").html(html);
}